package com.lvmama.pangolin.xc.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lvmama.pangolin.entity.spider.TicketCommodity;
import com.lvmama.pangolin.entity.xc.XCTicket_CommodityDetail;
import com.lvmama.pangolin.mybatis.mapper.xc.XCTicketCommodityDetailMapper;
import com.lvmama.pangolin.xc.service.XCTicketCommodityDetailService;
@Transactional
@Service
public class XCTicketCommodityDetailServiceImpl implements XCTicketCommodityDetailService{
	/**  
	* @Title：TCTicketCommodityDetailServiceImpl.java
	* @Author:zhoutianqi
	* @Description:
	* @Date：2017年2月17日上午11:19:51  
	*/
	@Autowired
	private XCTicketCommodityDetailMapper xcTicketCommodityDetailMapper;
	@Override
	public List<XCTicket_CommodityDetail> getXCTicket_CommodityDetailListByID(Map<String, Object> map)
			throws Exception {
		return xcTicketCommodityDetailMapper.getXCTicket_CommodityDetailListByID(map);
	}
	public int insertCommodityDetailLog(XCTicket_CommodityDetail detail)throws Exception{
		return xcTicketCommodityDetailMapper.insertCommodityDetailLog(detail);
	}
	public List<XCTicket_CommodityDetail> selectAllLog()throws Exception{
		return xcTicketCommodityDetailMapper.selectAllLog();
	}
	public List<XCTicket_CommodityDetail> queryLogByMap(Map<String,Object> map)throws Exception{
		return xcTicketCommodityDetailMapper.queryLogByMap(map);
	}
	public int deleteLogByMap(Map<String,Object> map)throws Exception{
		return xcTicketCommodityDetailMapper.deleteLogByMap(map);
	}
	public int updateLog(XCTicket_CommodityDetail detail)throws Exception{
		return xcTicketCommodityDetailMapper.updateLog(detail);
	}
	public int deleteLogByID(String detail_id)throws Exception{
		return xcTicketCommodityDetailMapper.deleteLogByID(detail_id);
	}
	@Override
	public int insert(TicketCommodity record)
	{
		return xcTicketCommodityDetailMapper.insert(record);
	}
	@Override
	public int insertSelective(TicketCommodity record)
	{
		return xcTicketCommodityDetailMapper.insertSelective(record);
	}
	@Override
	public List<XCTicket_CommodityDetail> getXCTicket_CommodityDetailLogListByID(Map<String, Object> map) throws Exception {
		return xcTicketCommodityDetailMapper.getXCTicket_CommodityDetailLogListByID(map);
	}
	@Override
	public int deleteByTaskAndProd(TicketCommodity record)
	{
		return xcTicketCommodityDetailMapper.deleteByTaskAndProd(record);
	}
	
}
